
package com.idealighter.game.games.errenniuniu.handler;

import com.google.inject.Inject;

import com.idealighter.game.core.annotation.ReqMsgHandler;
import com.idealighter.game.games.errenniuniu.manager.ErRenNiuNiuMgr;
import com.idealighter.game.games.errenniuniu.message.ReqEnterRoomMsg;
import com.idealighter.game.message.core.ReqMessage;
import com.idealighter.game.message.core.ResMessage;
import com.idealighter.game.player.struct.Player;
import com.idealighter.game.server.handler.ReqMessageHandler;


@ReqMsgHandler(502111)
public class ReqEnterRoomHandler implements ReqMessageHandler {

  @Inject
  private ErRenNiuNiuMgr errenniuniuMgr;

  @Override
  public ResMessage action(Player player, ReqMessage message) {
    ReqEnterRoomMsg msg = (ReqEnterRoomMsg) message;
    errenniuniuMgr.enterRoom(player, msg.getRoomId());

    return null;
  }
}
